import Layout from '@/layout/index.vue'
import Home from '@/views/home/index.vue'

export const routes = [
  {
    path: '/',
    component: Layout,
    children: [
      {
        path: '',
        component: Home,

      },
      // 新闻资讯
      {
        path: 'document/:vid',
        component: () => import('@/views/informations/detailByVid.vue'),
      },
      {
        path: 'informations/:tag',
        component: () => import('@/views/informations/index.vue'),
      },
      {
        path: 'informations/:tag',
        component: () => import('@/views/informations/documents.vue'),
        meta: {
          rootPath: '/informations',
        },
        children: [
          {
            path: ':categoryId',
            component: () => import('@/views/informations/list.vue'),
          },
          {
            path: ':categoryId/:id',
            component: () => import('@/views/informations/detail.vue'),
          },
        ],
      },
    ],
  },

]
